package com.itfreer.cms.service.module;

import javax.ws.rs.Path;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.itfreer.cms.entity.module.SensitiveEntity;
import com.itfreer.form.api.BaseRestService;
import com.itfreer.form.api.BaseService;

/**
 * 定义敏感词服务
 */
@Component
@Path("/cms_sensitive/")
public class RestSensitiveService extends BaseRestService<SensitiveEntity> {

	/**
	 * 敏感词管理接口
	 */
	@Autowired
	private SensitiveService sensitiveManage;
	
	@Override
	protected BaseService<SensitiveEntity> getService() {
		return sensitiveManage;
	}
	
	@Override
	protected String getServiceName() {
		return "cms_sensitive";
	}
}
